bc4d9f89098152c5462e0498baebbc7b3d6b92db,maven-confluence-reporting-plugin/src/main/java/org/bsc/maven/confluence/plugin/AbstractConfluenceMojo.java,AbstractConfluenceMojo,processUri,#java.net.URI#Charset#,356
Before Change
private String processUri( java.net.URI uri, Charset charset ) throws ProcessUriException {
try {
final java.io.InputStream is = Site.processUri(uri, this.getTitle()) ;
return toString( is, charset );
} catch (Exception ex) {
After Change
private String processUri( java.net.URI uri, final Charset charset ) throws ProcessUriException {
try {
return Site.processUri(uri, this.getTitle(), new Func2<InputStream, Representation, String>() {
@Override
public String call(InputStream is, Representation r) {
try {
return AbstractConfluenceMojo.this.toString( is, charset );
} catch (IOException ex) {
throw new RuntimeException(ex);
}
}
}) ;
} catch (Exception ex) {
throw new ProcessUriException("error reading content!", ex);